package com.itheima.web.manager;

import com.itheima.domain.vo.AnalysisSummaryVo;
import com.itheima.service.db.AnalysisByDayService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Component;

/**
 * @Author 请不要叫我高司令
 * @Date 2022/3/26 22:36
 * @Version 1.0
 */

@Component
public class AnalysisManager {

    @DubboReference
    private AnalysisByDayService analysisByDayService;

    //概要统计信息
    public ResponseEntity summary() {

        AnalysisSummaryVo vo = analysisByDayService.findAnalysisSummaryVo();

        return ResponseEntity.ok(vo);

    }
}
